package com.spzx.payment.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.spzx.payment.domain.PaymentInfo;

import java.util.List;
import java.util.Map;

/**
 * 付款信息Service接口
 *
 * @author atguigu
 * @date 2024-09-11
 */
public interface IPaymentInfoService extends IService<PaymentInfo>
{

    /**
     * 保存支付记录
     * @param orderNo 订单号
     * @return PaymentInfo
     */
    PaymentInfo savePaymentInfo(String orderNo);

    /**
     * 更新交易记录状态
     */
    void updatePaymentStatus(Map<String, String> map, Integer payType);
}